package com.wanxi.action;

import javax.print.attribute.standard.Fidelity;
import java.io.File;
import java.io.IOException;

public class MkFile {
    public static void main(String[] args) {
        String path = "E:\\wanxi\\step-2\\java02-0921\\day19file类\\src\\com\\wanxi\\action";
        String fileName = "a.txt";
        File dir = new File(path);
        if (!dir.exists()) {
            dir.mkdirs();
        }
        File file1 = new File(path, fileName);
        try {
            file1.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
